<fieldset>
    <legend>条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label" >用户名</label>
            <div class="layui-input-inline" style="width: 130px">
                <input name="username" value="{:input('username','')}" placeholder="请输入用户名" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label" >联系电话</label>
            <div class="layui-input-inline" style="width: 130px">
                <input name="contact_phone" value="{:input('contact_phone','')}" placeholder="请输入电话" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label" >单位名称</label>
            <div class="layui-input-inline" style="width: 130px">
                <input name="company_name" value="{:input('company_name','')}" placeholder="请输入单位名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">会员类型</label>
            <div class="layui-input-inline" style="width: 130px">
                <select class="layui-select" name="status" >
                    <option value="">-- 全部类型 --</option>
                    {foreach $state as $k=>$v}
                    {if $k eq $status}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/if}
                    {/foreach}
                </select>
            </div>
        </div>


        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>
    </form>
</fieldset>

<script>window.form.render()</script>
